package com.hzy.ums.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员信息业务对象 ums_member
 *
 * @author zengxin
 * @date 2023-10-19
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MemberBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nickname;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 隐藏前三位后四位的手机号
     */
    @NotBlank(message = "隐藏前三位后四位的手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 用户备注
     */
    @NotBlank(message = "用户备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mark;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 头像
     */
    @NotBlank(message = "头像不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;

    /**
     * 性别：0->未知；1->男；2->女
     */
    @NotNull(message = "性别：0->未知；1->男；2->女不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer gender;

    /**
     * 用户所在城市
     */
    @NotBlank(message = "用户所在城市不能为空", groups = { AddGroup.class, EditGroup.class })
    private String city;

    /**
     * 用户所在省份
     */
    @NotBlank(message = "用户所在省份不能为空", groups = { AddGroup.class, EditGroup.class })
    private String province;

    /**
     * 用户所在国家
     */
    @NotBlank(message = "用户所在国家不能为空", groups = { AddGroup.class, EditGroup.class })
    private String country;

    /**
     * 生日
     */
    @NotNull(message = "生日不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date birthday;

    /**
     * 推广员id
     */
    @NotBlank(message = "推广员id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String spreadUid;

    /**
     * 推广员关联时间
     */
    @NotNull(message = "推广员关联时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date spreadTime;

    private List<Long> hospitalIds;

    private List<Long> categoryIds;

}
